package com.dao;

import com.vo.CommentVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface CommentDao {
    //根据状态查找评论
    // Integer pageNo = commentVo.getPageNo();
    //        Date create_date = commentVo.getCreate_date();
    //        Date end_date = commentVo.getEnd_date();
    //        String context = commentVo.getContext();
    //        Integer status = commentVo.getStatus();
    List<CommentVo> selectCommentByCommentVo(@Param("begin_date") Date begin_date,
                                             @Param("end_date")Date end_date,@Param("context")String context,@Param("status")Integer status);


    //根据id修改评论状态status
    int updateStatusByCommentId(@Param("commentId") Integer commentId,@Param("status") Integer status);
}
